home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XSaveContext.z / XSaveContext
Encoding:
Text File  |  2002-10-03  |  4.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXSSSSaaaavvvveeeeCCCCoooonnnntttteeeexxxxtttt((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))  XXXXSSSSaaaavvvveeeeCCCCoooonnnntttteeeexxxxtttt((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XSaveContext, XFindContext, XDeleteContext, XUniqueContext -
  10.           associative look-up routines
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           int XSaveContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t, _d_a_t_a)
  14.                 Display *_d_i_s_p_l_a_y;
  15.                 XID _r_i_d;
  16.                 XContext _c_o_n_t_e_x_t;
  17.                 XPointer _d_a_t_a;
  18.  
  19.           int XFindContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t, _d_a_t_a__r_e_t_u_r_n)
  20.                 Display *_d_i_s_p_l_a_y;
  21.                 XID _r_i_d;
  22.                 XContext _c_o_n_t_e_x_t;
  23.                 XPointer *_d_a_t_a__r_e_t_u_r_n;
  24.  
  25.           int XDeleteContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t)
  26.                 Display *_d_i_s_p_l_a_y;
  27.                 XID _r_i_d;
  28.                 XContext _c_o_n_t_e_x_t;
  29.  
  30.           XContext XUniqueContext()
  31.  
  32.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  33.           _c_o_n_t_e_x_t   Specifies the context type to which the data
  34.                     belongs.
  35.  
  36.           _d_a_t_a      Specifies the data to be associated with the
  37.                     window and type.
  38.  
  39.           _d_a_t_a__r_e_t_u_r_n
  40.                     Returns the data.
  41.  
  42.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  43.  
  44.           _r_i_d       Specifies the resource ID with which the data is
  45.                     associated.
  46.  
  47.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  48.           If an entry with the specified resource ID and type already
  49.           exists, _X_S_a_v_e_C_o_n_t_e_x_t overrides it with the specified
  50.           context.  The _X_S_a_v_e_C_o_n_t_e_x_t function returns a nonzero error
  51.           code if an error has occurred and zero otherwise.  Possible
  52.           errors are _X_C_N_O_M_E_M (out of memory).
  53.  
  54.           Because it is a return value, the data is a pointer.  The
  55.           _X_F_i_n_d_C_o_n_t_e_x_t function returns a nonzero error code if an
  56.           error has occurred and zero otherwise.  Possible errors are
  57.           _X_C_N_O_E_N_T (context-not-found).
  58.  
  59.           The _X_D_e_l_e_t_e_C_o_n_t_e_x_t function deletes the entry for the given
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXSSSSaaaavvvveeeeCCCCoooonnnntttteeeexxxxtttt((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))  XXXXSSSSaaaavvvveeeeCCCCoooonnnntttteeeexxxxtttt((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           resource ID and type from the data structure.  This function
  75.           returns the same error codes that _X_F_i_n_d_C_o_n_t_e_x_t returns if
  76.           called with the same arguments.  _X_D_e_l_e_t_e_C_o_n_t_e_x_t does not
  77.           free the data whose address was saved.
  78.  
  79.           The _X_U_n_i_q_u_e_C_o_n_t_e_x_t function creates a unique context type
  80.           that may be used in subsequent calls to _X_S_a_v_e_C_o_n_t_e_x_t.
  81.  
  82.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.